home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / previe_1 / previewp.odl < prev    next >
Text File  |  1998-10-28  |  2KB  |  69 lines

  1. // PreviewPrint.odl : type library source for PreviewPrint.exe
  2.  
  3. // This file will be processed by the MIDL compiler to produce the
  4. // type library (PreviewPrint.tlb).
  5.  
  6. [ uuid(D5E5B1A7-68E7-11D2-BEF9-0080C770FCBD), version(1.0) ]
  7. library PreviewPrint
  8. {
  9.     importlib("stdole32.tlb");
  10.     
  11.  
  12.     //  Primary dispatch interface for CPreviewPrintDoc
  13.     
  14.     [ uuid(D5E5B1A8-68E7-11D2-BEF9-0080C770FCBD) ]
  15.     dispinterface IPreviewPrint
  16.     {
  17.         properties:
  18.             // NOTE - ClassWizard will maintain property information here.
  19.             //    Use extreme caution when editing this section.
  20.             //{{AFX_ODL_PROP(CPreviewPrintDoc)
  21.             [id(2)] short Orientation;
  22.             [id(3)] short PageWidth;
  23.             [id(4)] short PageHeight;
  24.             [id(5)] long hwndOwner;
  25.             [id(6)] short PreviewPrintState;
  26.             [id(1)] short StartPage;
  27.             //}}AFX_ODL_PROP
  28.             
  29.         methods:
  30.             // NOTE - ClassWizard will maintain method information here.
  31.             //    Use extreme caution when editing this section.
  32.             //{{AFX_ODL_METHOD(CPreviewPrintDoc)
  33.             [id(7)] boolean BeginDoc();
  34.             [id(8)] boolean EndDoc();
  35.             [id(9)] boolean GetPos(short* x, short* y);
  36.             [id(10)] void MoveTo(short x, short y);
  37.             [id(11)] boolean LineTo(short x, short y);
  38.             [id(12)] boolean SetFont(BSTR lpszFaceName, short nSize, short nOptions, short nAngle);
  39.             [id(13)] boolean TextOut(short x, short y, BSTR szText);
  40.             [id(14)] short SetTextAlign(short nOptions);
  41.             [id(15)] short GetTextAlign();
  42.             [id(16)] long SetBkColor(long crColor);
  43.             [id(17)] long GetBkColor();
  44.             [id(18)] long SetTextColor(long crColor);
  45.             [id(19)] long GetTextColor();
  46.             [id(20)] boolean NewPage();
  47.             [id(21)] void KillDoc();
  48.             [id(22)] boolean GetTextExtent(BSTR lpszText, short* nWidth, short* nHeight);
  49.             [id(23)] boolean SetLineStyle(short nStyle, short nWidth, long crColor);
  50.             [id(24)] void SetTitle(BSTR lpszApp, BSTR lpszDoc);
  51.             [id(25)] boolean ShowPreview();
  52.             [id(26)] boolean ShowPrintSetup();
  53.             [id(27)] boolean TextOutClip(short x, short y, BSTR szText, short nClipLeft, short nClipTop, short nClipRight, short nClipBottom);
  54.             //}}AFX_ODL_METHOD
  55.  
  56.     };
  57.  
  58.     //  Class information for CPreviewPrintDoc
  59.     
  60.     [ uuid(D5E5B1A6-68E7-11D2-BEF9-0080C770FCBD) ]
  61.     coclass Document
  62.     {
  63.         [default] dispinterface IPreviewPrint;
  64.     };
  65.  
  66.     //{{AFX_APPEND_ODL}}
  67.     //}}AFX_APPEND_ODL}}
  68. };
  69.